str = input()
Interger_ = []
lower_alpha = []
upper_alpha = []
alpha_num = {}
max = 0
for i in str:
    if i.islower():
        lower_alpha.append(i)
    if i.isupper():
        upper_alpha.append(i)
    if i.isdigit():
        Interger_.append(i)
    if i not in alpha_num:
        alpha_num[i] = 1
    else:
        alpha_num[i] += 1
    for k, v in alpha_num.items():
        if v > max:
            max = v
            alpha_max = k

print("输入字符中所有的整数有： ",Interger_)
print("输入字符中所有的小写字母有： ",lower_alpha)
print("输入字符中所有的大写字母有： ",upper_alpha)
print("输入字符中出现字数最多的字符是： ",alpha_max)
